{%extends file="user/page/layout.tpl"%}

{%block name="sub-head-static"%}
    {%require name="user:static/assetsiphone6/assetsiphone6.less"%}
{%/block%}

{%block name="right-content"%}
    <div class="page-assetsiphone6">
        <div class="block summary-block">
            <div class="left bankcard-container">
                <div class="tip">活动已结束</div>
              </div>
             <div class="right">
                 <div class="number-block">
                     <i class="ob-icon bo-icon-cycle2"></i>
                     <div class="ob-context">
                         <div class="ob-title ob-title1 now-profit">￥{%$summary.total_profit|format_amount:4%}</div>
                         <div class="ob-info">预期收益</div>
                     </div>
                 </div>
                 <div class="number-block">
                     <i class="ob-icon bo-icon-cycle2"></i>
                     <div class="ob-context">
                         <div class="ob-title ob-title1 now-profit">￥{%$summary.credit|format_amount:4%}</div>
                         <div class="ob-info">持有份额</div>
                     </div>
                 </div>
             </div>
            <div class="clear"></div>
        </div>
        {%if $list && $list|count%}
            <div class="block  record-block">
                <div class="title">我的购买记录</div>
                <div class="record-table">
                    <hr>
                    <hr>
                    <table>
                        <thead>
                        <tr>
                            <td>时间</td>
                            <td>我的预期收益</td>
                            <td>已返还收益</td>
                            <td>已返还本金</td>
                            <td>状态</td>
                        </tr>
                        </thead>
                        <tbody>
                        {%foreach $list as $item%}
                            <tr>
                                <td>{%$item.snap_date%}</td>
                                <td>￥{%$item.expect_profit%}</td>
                                <td>￥{%$item.return_profit%}</td>
                                <td>￥{%$item.return_amount%}</td>
                                <td>
                                    {%if $item.status==1%}
                                    未提现
                                    {%elseif $item.status==2%}
                                    提现中
                                    {%elseif $item.status==3%}
                                    已提现
                                    {%else%}
                                    未到提现时间
                                    {%/if%}
                                </td>
                            </tr>
                        {%/foreach%}
                        </tbody>
                    </table>
                </div>
            </div>
        {%/if%}
    </div>
{%/block%}